﻿<br />
<div class="code">
&#64;model&nbsp;SpamModel<br />
<br />
&lt;div&nbsp;&#64;Html.KoAttrVisible(m&nbsp;=&gt;&nbsp;m.WantsSpam)&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;Preferred&nbsp;flavors&nbsp;of&nbsp;spam:<br />
&nbsp;&nbsp;&nbsp;&nbsp;&lt;div&gt;&lt;input&nbsp;type=<span class="String">"checkbox"</span>&nbsp;value=<span class="String">"cherry"</span>&nbsp;&#64;Html.KoAttrChecked(m&nbsp;=&gt;&nbsp;m.SpamFlavors)&nbsp;/&gt;&nbsp;Cherry&lt;/div&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&lt;div&gt;&lt;input&nbsp;type=<span class="String">"checkbox"</span>&nbsp;value=<span class="String">"almond"</span>&nbsp;&#64;Html.KoAttrChecked(m&nbsp;=&gt;&nbsp;m.SpamFlavors)&nbsp;/&gt;&nbsp;Almond&lt;/div&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&lt;div&gt;&lt;input&nbsp;type=<span class="String">"checkbox"</span>&nbsp;value=<span class="String">"msg"</span>&nbsp;&#64;Html.KoAttrChecked(m&nbsp;=&gt;&nbsp;m.SpamFlavors)&nbsp;/&gt;&nbsp;Monosodium&nbsp;Glutamate&lt;/div&gt;<br />
<br />
&lt;p&gt;Spam&nbsp;flavours:&nbsp;&#64;Html.KoText(m&nbsp;=&gt;&nbsp;m.SpamFlavors)&lt;/p&gt;<br />
<br />
<br />
&#64;Model.ApplyBindingsScript(KoBindingOptions.IncludeData)
</div>